import request from '@/utils/request'

export function fetchData(data) {
  return request({
    url: '/api/uni/finance/account/fetch',
    method: 'post',
    data
  })
}

export function saveData(data) {
  return request({
    url: '/api/uni/finance/account/save',
    method: 'post',
    data
  })
}

export function cash(data) {
  return request({
    url: '/api/uni/finance/account/cash',
    method: 'post',
    data
  })
}

export function hasNew(data) {
  return request({
    url: '/api/uni/order/order/has-new',
    method: 'post',
    data
  })
}

export function saveNew(data) {
  return request({
    url: '/api/uni/order/order/save-new',
    method: 'post',
    data
  })
}

// ---------------------------------------------------------------

// 查看店铺资料
export function view(data) {
  return request({
    url: '/api/uni/supplier/supplier/view',
    method: 'post',
    data
  })
}

// 修改简介
export function edit(data) {
  return request({
    url: '/api/uni/supplier/supplier/edit',
    method: 'post',
    data
  })
}
